package com.base.pd.agent;

public class AgentFTW extends Agent {
	
	private int otherCooperative;
	private int otherDefect;

	public AgentFTW() {
		super("For the Win", "Batt");
	}

	@Override
	public boolean cooperate() {
		return ((otherDefect*2)>otherCooperative);
			
	}

	@Override
	public void update(int round, boolean myMove, boolean otherMove,
			int myScore, int otherScore) {
		if(otherMove)
			this.otherCooperative++;
		else
			this.otherDefect++;
	}

	@Override
	public void init() {
	}

}
